home *** CD-ROM | disk | FTP | other *** search
/ Programmer Power Tools / Programmer Power Tools.iso / modem / byepc300.arc / BYEXLIB.ARC / GETCD.ASM < prev    next >
Encoding:
Assembly Source File  |  1987-10-25  |  633 b   |  27 lines

  1.            INCLUDE MODEL.INC
  2. ;
  3. ;---------------------------------------------------------------------------
  4. ;   Function:    int _bye_getcd()
  5. ;
  6. ;   Parms:    void
  7. ;
  8. ;   Purpose:    Test for carrier detect status from the modem.
  9. ;        Returns a logical TRUE if the modem still has
  10. ;        caller on line with carrier.
  11. ;
  12. ;   Return:    1 = Carrier Detect found
  13. ;        0 = Carrier Detect not found
  14. ;---------------------------------------------------------------------------
  15. ;
  16.            PUBLIC __bye_getcd
  17.  
  18. __bye_getcd    PROC
  19.  
  20.            mov  ah,3        ;AH=3 for get CD state
  21.            int  BYE_VECT
  22.            ret
  23.  
  24. __bye_getcd    ENDP
  25.            END
  26.  
  27.